

CC = gcc
CFLAGS = -Wall -g -pedantic

targets = 537sh

main_objs = input.h input.o execute.o command.h command.o 

.PHONY: all
.DEFAULT: all
all: $(targets)

537sh: 537sh.o $(main_objs)
	$(CC) $(CFLAGS) $^ -o $@


%.o: %.c 
	$(CC) $(CFLAGS) -c $^ -o $@
 
.PHONY: clean
clean:
	$(RM) $(targets) *.o

